extends "../cTDW_2_1/cTDW_2_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()
	lv = 4
	attCoe.atk *=1.3
	attCoe.maxHp *= 1.5
	addCdSkill("qsw",9)
	addSkillTxt("战意护盾：为自己和生命比最低的友方（除自己）附加1层<圣盾>和（100 + 生命上限3%）点护盾值[cd:9秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "qsw1":
		cst("战意护盾","000000",position)
		var chas = getAllChas(2)
		chas.sort_custom(self,"sort2")
		if chas.size() > 1:
			for i in chas:	
				if i == self:continue
				i.addBuff(ctrl.b_shengdun.new(1))
				i.changeShield(100 + att.maxHp*0.03)
				break
		addBuff(ctrl.b_shengdun.new(1))
		changeShield(100 + att.maxHp*0.03)
		
